<?php
    include('resizeImg.php');
    $img = "tay.jpg"; // File image location
    $newfilename = "images/thumb1_image.jpg"; // New file name for thumb
    $w = 50;
    $h = 50;
     
    $thumbnail = resize($img, $w, $h, $newfilename);
     
    echo "<img src='".$thumbnail."'>";
?>